package hub.cathome.mapper;

import hub.cathome.entity.Comment;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("commentMapper")
public interface CommentMapper {
    int insertComment(Comment comment);
    int updateComment(Comment comment);
    int deleteComment(Integer id);
    List<Comment> getCommentByShotBlogId(Integer shotBlogId);
    Comment getCommentById(Integer id);
    List<Comment> getAllComment();
    List<Integer> getCommentIdByUserId(Integer userId);
    List<Integer> getCommentIdByShotBlogId(Integer shotBlogId);

}
